package com.weifeiyang.aidlserverdemo;

/**
 * Created by weifeiyang on 2016/6/12 0012.
 */

public class Count implements CountInf {
    private int fromPosition;
    private MySingleNotifyCallBackInterface callBack;

    public Count(int fromPosition, MySingleNotifyCallBackInterface callBack) {
        this.fromPosition = fromPosition;
        this.callBack = callBack;
    }

    @Override
    public void add(int a, int b) {
        ServiceManagerUtil.dealWithResult(fromPosition, callBack, "add", a + b + "");
    }

    @Override
    public void subtract(int a, int b) {
        ServiceManagerUtil.dealWithResult(fromPosition, callBack, "subtract", a - b + "");
    }
}
